<article class="page-container">
	<form autocomplete="off" class="form form-horizontal jq_validate_file" action="" enctype="multipart/form-data" method="post" onsubmit="return false;">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
			<span class="c-red">*</span>文章标题：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
		          <input type="text" class="input-text" value="<{$info['title']}>"
		          placeholder="文章标题"
		          name="title" 
		          data-rule-required="true"
		          data-msg-required="请输入文章标题"
		          />
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>文章分类：
			</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<span class="select-box">
					<select name="cat_id" class="select">
				          <{volist name="category" id="v"}>
				              <option value="<{$v.id}>" <{if condition="$v.id==$info.cat_id"}>selected=true<{/if}>>
			                  <{for start="0" end="$v.depath"}>
			                  &nbsp;
			                  <{/for}>
				              |-<{$v.cat_title}>
				              </option>
				          <{/volist}>
					</select>
				</span>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>设置推荐：
			</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<span class="select-box">
					<select name="rec_id" class="select">
				          <{volist name="rec" id="v"}>
				              <option value="<{$key}>" <{if condition="$key==$info.rec_id"}>selected=true<{/if}>>
				              <{$v}>
				              </option>
				          <{/volist}>
					</select>
				</span>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>是否开启：
			</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<span class="select-box">
					<select name="status" class="select">
				          <{volist name="status" id="v"}>
				              <option value="<{$key}>" <{if condition="$key==$info.status"}>selected=true<{/if}>>
				              <{$v}>
				              </option>
				          <{/volist}>
					</select>
				</span>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>排序值：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
		          <input type="text" class="input-text" value="<{$info['sort']}>"
		          placeholder="排序值 倒序排序"
		          name="sort"
		          data-rule-required="true"
		          data-msg-required="请输入排序值"
		          data-rule-digits="true"
		          data-msg-digits="请输入正整数" 
		          />
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
				<span class="c-red">*</span>浏览次数：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
		          <input type="text" class="input-text" value="<{$info['views']}>"
		          placeholder="浏览次数"
		          name="views"
		          data-rule-required="true"
		          data-msg-required="请输入浏览次数"
		          data-rule-digits="true"
		          data-msg-digits="请输入正整数" 
		          />
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">关键词：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="多关键词用逗号隔开" value="<{$info['keywords']}>"  name="keywords">
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">扩展：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" placeholder="多个扩展用|隔开 ,  不知道如何使用请保持不变" value="<{$info['ext']}>"  name="ext">
			</div>
		</div>
		
		<{include file="com/editphoto" /}>
		
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">文章摘要：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<textarea name="description" class="textarea"  placeholder="文章摘要..." onKeyUp="textarealength(this,200)"><{$info['description']}></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/80</p>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">缩略图：</label>
			<div class="formControls col-xs-8 col-sm-9">
					<input type="file" name="pic">
					<{if condition="!empty($info['pic'])"}>
					<img src="/<{$info['pic']}>" height="50px" />&nbsp;&nbsp;
					<span class="ckbox ckbox-primary">
						<input type="checkbox" name="delete_pic" value="yes" id="delete_pic">
						<label for="delete_pic">&nbsp;删除图片</label>
					</span>
					<{/if}>
			</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">文章内容：</label>
			<div class="formControls col-xs-8 col-sm-9"> 
				<textarea class="kind_editor" name="content" style="width:800px;height:400px;visibility:hidden;"><{$info['content']}></textarea> 
			</div>
		</div>
		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<input type='submit' class="btn btn-primary radius" type="submit" value="提交" />
				<button onClick="com_close(this);" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</article>